package org.gfix.parser;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;

/**
 * Similar to Sax.inputsource
 * @author alan
 *
 */
public class MessageSource 
{
    private Reader characterStream;

    public MessageSource(InputStream byteStream)
    {
    	this(new BufferedReader(new InputStreamReader(byteStream)));
    }
    
    public MessageSource(Reader characterStream)
    {
    	this.characterStream = characterStream;
    }

	public Reader getCharacterStream() {
		return characterStream;
	}
}
